<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %> 
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加 </title>
<link rel="stylesheet" href="/css/public2.css"/>
<script type="text/javascript" src="/js/jquery.js"></script>
<script type="text/javascript" src="/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/js/ckeditor/ckeditor.js" charset="utf-8"></script>
<script type="text/javascript" src="/js/common/common.js"></script>
<script type="text/javascript" src="/js/view/news/newsinfo.js"></script>
<script type="text/javascript" src="/js/win_layer/win_layer.js"></script>
<script type="text/javascript" src="/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
/*DOM加载完成后执行*/
$(document).ready(function()
{
   initErrorMsg();
   var cke = CKEDITOR.replace("content",{toolbar:'Full',uiColor :'#D2E9FF',width:'600'} );
});
document.onkeydown=keyDownQuery; 
</script>
</head>
<body>
   <form class="add_news_pop" action="newsCenterAction_addNewsInfo.action" theme="simple" id="addNewsInfo"
      enctype="multipart/form-data" method="post" namespace="/newsinfo">
        <s:hidden name="operateStatus" id="operateStatus"></s:hidden>
        <dl class="clearfix"><dt>活动标题:</dt><dd><input name="newsInfo.title" id="title" style="width:555px" class="input" maxlength="100"></dd></dl>
        <%-- <dl class="clearfix"><dt>概述:</dt><dd><s:textarea name="newsInfo.summary" id="summary" style="width:555px" class="descript" maxlength="100"></s:textarea></dd></dl> --%>
        <%-- <dl class="clearfix"><dt>上传图片:</dt><dd><s:file id="file" name="picFile" onchange="fileChange()"></s:file><p>(只能上传 .jpg/.jpeg/.png 格式的图片，建议宽高比尽量为3:2)</p></dd></dl> --%>
        <%-- <dl class="clearfix"><dt>关键词:</dt><dd><s:textfield name="newsInfo.keyWords" id="keyWords" style="width:555px" class="input" maxlength="50"></s:textfield></dd></dl> --%>
        <%-- <dl class="clearfix"><dt>描述:</dt><dd><s:textfield name="newsInfo.description" id="description" style="width:555px" class="input" maxlength="100"></s:textfield></dd></dl> --%>
        <%-- <dl class="clearfix"><dt>活动类型:</dt><dd><s:select list="#{3:'圈子动态',2:'特别关注',1:'校内活动',0:'校外活动'}" id="type" name="newsInfo.type" label="abc" listKey="key" listValue="value"  headerKey="" headerValue="请选择"></s:select></dd></dl> --%>
        <input type="hidden" name="newsInfo.type" value="3"><!-- 默认允许评论 -->
        <input type="hidden" name="newsInfo.canDiscuss" value="1"><!-- 默认允许评论 -->
        <dl class="clearfix"><dt>活动类型:</dt><dd><input type="checkbox" >文艺  <input type="checkbox">体育 <input type="checkbox">技术 <input type="checkbox">公益<input type="checkbox">跨校</dd></dl>
        <dl class="clearfix"><dt>起止时间:</dt><dd><input id="startTime" value=""  name="newsInfo.startTime" type="text" class="Wdate input" onclick="WdatePicker();" style="width: 270px">~<input id="endTime" name="newsInfo.endTime" type="text" class="Wdate input" onclick="WdatePicker();" style="width: 270px"></dd></dl>
        <dl class="clearfix"><dt>发起单位/个人:</dt><dd><input id="sponsor" value=""  name="newsInfo.sponsor" type="text" style="width:555px" class="input" maxlength="100"></dd></dl>
        <dl class="clearfix"><dt>活动内容：</dt><dd><s:textarea name="newsInfo.content" style="width:555px" id="content" class="descript"></s:textarea></dd></dl>
        <div class="add_news_btn clearfix" style="padding-bottom:30px;"><a href="javascript:addNewsInfo();" class="btn1" style="margin-left:94px;">确定</a><a href="javascript:exit();" class="btn4">取消</a><a href="javascript:viewArticle();" class="btn2">预览</a></div>
   </form>
   <jsp:include page="/WEB-INF/view/news/viewNewsInfo.jsp"/> 
</body>
</html>
